From 314bf97310ed4fc2ef965ca40c407f566d88d41d Mon Sep 17 00:00:00 2001 From: Stephane Glondu Date: Mon, 16 Mar 2026 08:11:31 +0100 Subject: [PATCH] Increase timeout in tests to cope with slowness of riscv64 --- ...-in-tests-to-cope-with-slowness-of-r.patch | 21 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 22 insertions(+) create mode 100644 debian/patches/0002-Increase-timeout-in-tests-to-cope-with-slowness-of-r.patch diff --git a/debian/patches/0002-Increase-timeout-in-tests-to-cope-with-slowness-of-r.patch b/debian/patches/0002-Increase-timeout-in-tests-to-cope-with-slowness-of-r.patch new file mode 100644 index 0000000..160436a --- /dev/null +++ b/debian/patches/0002-Increase-timeout-in-tests-to-cope-with-slowness-of-r.patch @@ -0,0 +1,21 @@ +From: Stephane Glondu +Date: Mon, 16 Mar 2026 08:11:08 +0100 +Subject: Increase timeout in tests to cope with slowness of riscv64 + +--- + cohttp-lwt-unix/test/cohttp_lwt_unix_test/src/cohttp_lwt_unix_test.ml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cohttp-lwt-unix/test/cohttp_lwt_unix_test/src/cohttp_lwt_unix_test.ml b/cohttp-lwt-unix/test/cohttp_lwt_unix_test/src/cohttp_lwt_unix_test.ml +index d399ea1..36c59fe 100644 +--- a/cohttp-lwt-unix/test/cohttp_lwt_unix_test/src/cohttp_lwt_unix_test.ml ++++ b/cohttp-lwt-unix/test/cohttp_lwt_unix_test/src/cohttp_lwt_unix_test.ml +@@ -40,7 +40,7 @@ let temp_server ?port spec callback = + Lwt.wakeup_exn server_failed_wake exn; + Lwt.reraise exn) + in +- Lwt.pick [ Lwt_unix.with_timeout 5.0 (fun () -> callback uri); server_failed ] ++ Lwt.pick [ Lwt_unix.with_timeout 10.0 (fun () -> callback uri); server_failed ] + >|= fun res -> + Lwt.cancel server; + res diff --git a/debian/patches/series b/debian/patches/series index d3328ad..df8d618 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 0001-Disable-test-that-needs-base_quickcheck.patch +0002-Increase-timeout-in-tests-to-cope-with-slowness-of-r.patch -- 2.39.5